package com.nciae.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public class Dormitory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 栋号
     */
    private Integer buildingNo;

    /**
     * 房间号
     */
    private Integer roomNo;

    /**
     * 当前宿舍是否存在安全问题
     */
    private Integer isSecurity;

    /**
     * 当前宿舍长id
     */
    private Long dermitoryHeadId;

    @TableField(exist = false)
    private String dermitoryHeadName;

    @TableField(exist = false)
    private DormitoryHead dormitoryHead;

    @TableField(exist = false)
    private String connection;

    /**
     * 逻辑删除
     */
    private Integer isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(Integer buildingNo) {
        this.buildingNo = buildingNo;
    }
    public Integer getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(Integer roomNo) {
        this.roomNo = roomNo;
    }
    public Integer getIsSecurity() {
        return isSecurity;
    }

    public void setIsSecurity(Integer isSecurity) {
        this.isSecurity = isSecurity;
    }
    public Long getDermitoryHeadId() {
        return dermitoryHeadId;
    }

    public void setDermitoryHeadId(Long dermitoryHeadId) {
        this.dermitoryHeadId = dermitoryHeadId;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public DormitoryHead getDormitoryHead() {
        return dormitoryHead;
    }

    public void setDormitoryHead(DormitoryHead dormitoryHead) {
        this.dormitoryHead = dormitoryHead;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getConnection() {
        return connection;
    }

    public void setConnection(String connection) {
        this.connection = connection;
    }

    public String getDermitoryHeadName() {
        return dermitoryHeadName;
    }

    public void setDermitoryHeadName(String dermitoryHeadName) {
        this.dermitoryHeadName = dermitoryHeadName;
    }

    @Override
    public String toString() {
        return "Dormitory{" +
                "id=" + id +
                ", buildingNo=" + buildingNo +
                ", roomNo=" + roomNo +
                ", isSecurity=" + isSecurity +
                ", dermitoryHeadId=" + dermitoryHeadId +
                ", dermitoryHeadName='" + dermitoryHeadName + '\'' +
                ", dormitoryHead=" + dormitoryHead +
                ", connection='" + connection + '\'' +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
